package io;

import java.nio.ByteBuffer;
import java.util.HashMap;

public class GetData {
	private static final int BSIZE = 1024;

	public static void main(String[] args) {
		ByteBuffer byteBuffer = ByteBuffer.allocate(BSIZE);
		int i = 0;
		while (i++ < byteBuffer.limit()) {
			if (byteBuffer.get() != 0) {
				System.out.println("nozero");
			}
		}
		System.out.println("i= "+i);
		byteBuffer.rewind();
		byteBuffer.asCharBuffer().put("howdy");
		new HashMap<>();
	}
}
